package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@Builder
public class GoodsInfoResponse {
    private String goodsName;
    private String goodsNameRemark;
    private Integer goodstypeId;
    private String goodsTypeName;
    private String goodsDetails;
    private Integer ispayment;
    private String goodPhoto;
    @ApiModelProperty(dataType = "GoodsInfoResponse.Spec")
    private List<Spec> goodSpecModelList;
    private Integer showPrice;
    private Integer fromApp;
    private String wholesaleInfo;
    @ApiModelProperty("商品视频")
    private String videoUrl;

    @ApiModelProperty("是否已代理：0自身商品 1已代理 2未代理")
    private Integer goodsSelected;
    @ApiModelProperty("VR地址")
    private String qjVrUrl;
    @ApiModelProperty("通话-号码")
    private String kfTel;
    @ApiModelProperty("咨询-用户ID")
    private String kfChatId;

    private Integer companyId;
    @ApiModelProperty("企业-名称")
    private String companyName;
    @ApiModelProperty("企业-logo")
    private String companyLogo;
    @ApiModelProperty("企业等级")
    private Integer companyLevel;
    @ApiModelProperty("企业-中科公信：0无 1有")
    private Integer hasZkgx;
    @ApiModelProperty("企业-区域")
    private String companyAddrArea;
    @ApiModelProperty("企业-街名")
    private String companyAddrStreet;
    @ApiModelProperty("企业-门号")
    private String companyAddrNo;
    @ApiModelProperty("企业全景")
    private String companyVrUrl;


    @ApiModel("GoodsInfoResponse.Spec")
    @Data
    @Builder
    public static class Spec {
        private Integer specId;
        private String specName;
        private String specAttribute;
        private Integer specNum;
        private BigDecimal price;
        private BigDecimal priceRemark;
        private List<Spec> goodSpecModelList;
    }
}
